package com.braveman.im.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * TODO<json数据源>
 *
 * @author: 小嵩
 * @date: 2017/3/16 15:36
 */

public class JsonNewBean implements IPickerViewData {


    /**
     * name : 北京
     * pId : 100000
     * id : 110000
     * type : 1
     * parentId : 100000
     */

    public String name;
    public String pId;
    public String id;
    public String type;
    public String parentId;
    public List<ChildBeanX> child;

    @Override
    public String getPickerViewText() {
        return this.name;
    }

    public static class ChildBeanX implements IPickerViewData {
        /**
         * name : 北京市
         * pId : 110000
         * id : 110100
         * type : 2
         * parentId : 110000
         */

        public String name;
        public String pId;
        public String id;
        public String type;
        public String parentId;
        public List<ChildBean> child;

        @Override
        public String getPickerViewText() {
            return this.name;
        }


        public static class ChildBean implements IPickerViewData {
            /**
             * name : 东城区
             * pId : 110100
             * id : 110101
             * type : 3
             * parentId : 110100
             */

            public String name;
            public String pId;
            public String id;
            public String type;
            public String parentId;


            @Override
            public String getPickerViewText() {
                return this.name;
            }
        }
    }
}
